﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using Bortosky.Google.Visualization;
using IL2SWAUtilities;

namespace IL2SWA
{
    public partial class Zeitgeist : System.Web.UI.Page
    {
        
        [WebMethod]
        public static string GetMissionPilots()
        {   
            return IL2SWAUtilities.UIControls.GoogleDataTableJson("RepVisualisationMissionData", new string[] { }, new object[] { });
        }

        [WebMethod]
        public static string GetMissionPilotsBlueAir()
        {
            return IL2SWAUtilities.UIControls.GoogleDataTableJson("RepVisualisationPilotsAirDestroyed", new string[] { "@Side" }, new object[] { 0 });          
        }

        [WebMethod]
        public static string GetMissionPilotsRedAir()
        {
            return IL2SWAUtilities.UIControls.GoogleDataTableJson("RepVisualisationPilotsAirDestroyed", new string[] { "@Side" }, new object[] { 1 });          
        }

        [WebMethod]
        public static string GetMissionPilotsBlueGround()
        {
            return IL2SWAUtilities.UIControls.GoogleDataTableJson("RepVisualisationPilotsGroundDestroyed", new string[] { "@Side" }, new object[] { 0 });          
        }

        [WebMethod]
        public static string GetMissionPilotsRedGround()
        {
            return IL2SWAUtilities.UIControls.GoogleDataTableJson("RepVisualisationPilotsGroundDestroyed", new string[] { "@Side" }, new object[] { 1 });              
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}